package com.ma.chapter4.t1;

/**
 * @ClassName ThreadFrames
 * @Author: mayongqiang
 * @DATE 2022/3/3 20:11
 * @Description:
 */

public class ThreadFrames {
    public static void main(String[] args) {
        new Thread(() -> {
            methods(22);
        }, "t1");

        methods(11);
    }

    public static void methods(int x) {
        int y = x + 10;

    }

    public static String method2() {
        return new String("a");
    }
}
